#ifndef CALLBACK_H_
#define CALLBACK_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "evconnsvrd.h"

void evconn_tick_cb(evutil_socket_t fd, short events, void* args);

void evconn_stop_cb(evutil_socket_t signal, short event, void* args);

void evconn_reload_cb(evutil_socket_t signal, short event, void* args);

void evconn_listener_error_cb(struct evconnlistener* listener, void* args);

/* listner process: fd is the new file descriptor */
void evconn_listener_cb(struct evconnlistener* listener, evutil_socket_t fd, 
	struct sockaddr* addr, int32_t socklen, void* args);

#ifdef __cplusplus
}
#endif

#endif // CALLBACK_H_

